<div class="modal fade bs-modal-lg" id="modelContent">
	<div class="modal-dialog modal-lg">
        <div class="modal-content"></div>
    </div>
</div> 

<div class="portlet box green">
    <div class="portlet-title">
		<div class="caption"><i class="fa fa-cogs"></i>企业管理 &gt; 会员身份审核</div>
		<div class="tools"><a href="javascript:;" class="collapse" data-original-title="" title=""> </a></div>
    </div>
    <div class="portlet-body">
    	<div class="form-group">
				<div class="alert alert-warning">
					<strong> 注：</strong>
					1.点击拒绝需要填写原因。
				</div>
		</div>
    	<div class="tabbable-line ">
			<ul class="nav nav-tabs ">
				<li #if(!$!idCardAuthStates)  class="active" #end>
					<a href="/userAuth/list" class="ajaxify">全部</a>
				</li>
				<li #if($!idCardAuthStates == 'NO_AUTHED') class="active" #end ><a href="/userAuth/list?idCardAuthStates=NO_AUTHED" class="ajaxify">未认证</a></li>
				<li #if($!idCardAuthStates == 'AUTHING') class="active" #end ><a href="/userAuth/list?idCardAuthStates=AUTHING" class="ajaxify">认证中</a></li>
				<li #if($!idCardAuthStates == 'REAUTHING') class="active" #end ><a href="/userAuth/list?idCardAuthStates=REAUTHING" class="ajaxify">重新认证</a></li>
				<li #if($!idCardAuthStates == 'AUTH_PASS') class="active" #end ><a href="/userAuth/list?idCardAuthStates=AUTH_PASS" class="ajaxify">通过</a></li>
				<li #if($!idCardAuthStates == 'AUTH_REFUSE') class="active" #end ><a href="/userAuth/list?idCardAuthStates=AUTH_REFUSE" class="ajaxify">认证拒绝</a></li>
			</ul>
		</div>
		<div class="portlet-body form">
		   	<form action="/userAuth/list" class="form-horizontal" method="get" id="searchForm" onsubmit="return false">
				<div class="form-body">
		    		<div class="row">
						<div class="col-md-3">
							<label class="col-md-4 control-label">申请人：</label>
							<div class="col-md-8">
						    	<input type="text" class="form-control" name="realname" value="$!searchModel.realname">
								<input type="hidden" name="idCardAuthStates" value="$!idCardAuthStates">
							</div>
						</div>
						<div class="col-md-3">
							<label class="col-md-4 control-label">身份证号码：</label>
							<div class="col-md-8">
						    	<input type="text" class="form-control" name="idcard" value="$!searchModel.idcard">
							</div>
						</div>
						<div class="col-md-4">
							<label class="col-md-3 control-label">审核时间：</label>
							<div class="col-md-4">
						    	<input type="text" class="form-control" readOnly id="startTime" name="startTime" value="$!startTime">
						    	<i class="fa fa-calendar" style="position: absolute;right: 10px;top: 10px"></i>
							</div>
							<div class="col-md-1">~</div>
							<div class="col-md-4">
						    	<input type="text" class="form-control"readOnly id="endTime" name="endTime" value="$!endTime">
						    	<i class="fa fa-calendar" style="position: absolute;right: 10px;top: 10px"></i>
							</div>
						</div>
						<div class="col-md-2">
							<div class="actions col-md-12">
								<a href="javascript:;" class="btn green btn-sm ajax-search"><i class="fa fa-search"></i> 查询 </a>
								<a href="javascript:;" class="btn green btn-sm search-reset"><i class="fa fa-eraser"></i> 清除 </a>
							</div>
						</div>
		    		</div>
				</div>
				
			</form>
		</div>
		
    	<div class="dataTables_wrapper no-footer">
			<div class="table-scrollable">
			    <table class="table table-striped table-bordered table-hover">
				  	<thead>
						<tr>
		   		 			<th>会员号</th>
		   		 			<th>申请人</th>
		   		 			<th>身份证号</th>
		   		 			<th>手机号</th>
		   		 			<th>认证状态</th>
		   		 			<th>审核提示</th>
		   		 			<th>申请时间</th>
							<th class="col-md-2">操作</th>
						</tr>
					</thead>
					<tbody>
					#foreach($item in $userInfoPage.result)
		  				<tr>
						    <td>
					    		$!item.id
						    </td>
						    <td>$!item.realname</td>
						    <td>$!item.idcard</td>
						    <td>$!item.phone</td>
						    <td>$!item.idCardAuthState.name</td>
						    <td>$!item.idCardAuthDesc</td>
						    <td>$!item.applicationTime</td>
			    			<td>
						    	<!-- #if($!item.idCardAuthState == "AUTHING" || $!item.idCardAuthState == "REAUTHING" ||  $!item.idCardAuthState == "NO_AUTHED" )
						    	<a class="btn green btn-outline btn-sm ajax-operation" thref="/userAuth/pass?id=$!item.id" tohref="/userAuth/list" > 
									<i class="fa fa-check"></i>通过
								</a>
								<a class="btn green btn-outline btn-sm ajax-model-get" href="#modelContent" thref="/userAuth/refuse?id=$!item.id" data-toggle="modal"> 
									<i class="fa fa-remove"></i>拒绝
								</a>
								#end -->
								<a class="btn green btn-outline btn-sm ajax-model-get" href="#modelContent" thref="/userAuth/detail?id=$!item.id" data-toggle="modal"> 
									<i class="fa fa-eye"></i>详情
								</a>
						    </td>		  			
		  				</tr>
					#end
					</tbody>
				</table>
			</div>
			#set($page=$userInfoPage)
			#set($pageUrl="/userAuth/list?idCardAuthStates=$!searchModel.idCardAuthState&
			idcard=$!searchModel.idcard&realname=$!searchModel.realname&startTime=$!startTime&endTime=$!endTime
			&pageNo=")
			#parse("_page.htm")
		</div>
    </div>
</div>
<script src="/assets/scripts/views-date.js" type="text/javascript"></script>
<script type="text/javascript">
$("input[name=name]").focus();
</script>
